<template>
  <div class="navBar">
    <link rel="stylesheet" href="./iconfont.css">
    <div id="container">
      <div class="iconfont icon-zuo" @click="back"></div>
      <div class="global">全球<i class="iconfont icon-xiangxia"></i></div>
      
      <div class="nav_input">
        &nbsp;
        <i class="iconfont icon-guanbi" ></i>
        <span style="color: #b2b2b2">试试搜“公路上的风景”</span>
      </div>
      <div class="imgclass">
        <img class="img_head" src="nao.png" alt="">
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name:'navbar',
  components: {},
  data() {
    return {

    };
  },
  computed: {},
  methods: {
    back() {
      this.$router.replace('/home')
    }
  },
  created() {},
  mounted() {
    // console.log(window.innerHeight);
  }
 }
</script>
<style scoped>
  #container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6vh;
    width: 100%;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -1px 1px 1px;
  }
  .nav_input {
    height: 4vh;
    flex: 0.8;
    background-color: #f4f4f4;
    border-radius: 2vh;
    line-height: 4vh;
  }
  .imgclass {
    width: 10vw;
  }
  .img_head {
    width: 7vw;
  }


</style>